using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmRcEntrance")]
    public class RcEntrance
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "EntId", ResourceType = typeof(Resources.RcEntrancesResource))]
        public int EntId { get; set; }

		[ForeignKey("TmpEmp")]
		[DataMember, Display(Name = "TmpEmpId", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<int> TmpEmpId { get; set; }

		[ForeignKey("")]
		[DataMember, Display(Name = "Id", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<int> Id { get; set; }

		[ForeignKey("EntField")]
		[DataMember, Display(Name = "EntFieldId", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<int> EntFieldId { get; set; }

		[ForeignKey("EntClass")]
		[DataMember, Display(Name = "EntClassId", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<int> EntClassId { get; set; }

		[DataMember, Display(Name = "EntDepName", ResourceType = typeof(Resources.RcEntrancesResource))]
        public string EntDepName { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.RcEntrancesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.RcEntrancesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.RcEntrancesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember, Display(Name = "HrmMpClasses", ResourceType = typeof(Resources.RcEntrancesResource))]
        public virtual MpClass HrmMpClasses { get; set; }

		[DataMember, Display(Name = "HrmMpFieldPositions", ResourceType = typeof(Resources.RcEntrancesResource))]
        public virtual FieldPosition HrmMpFieldPositions { get; set; }

		public virtual Employee TmpEmp { get; set; } 

		public virtual RcEntrance EntField { get; set; }

        public virtual RcEntrance EntClass { get; set; }

    }
}